﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _035.StringBuilder可变字符串
{
	internal class Program
	{
		static void Main(string[] args)
		{
			StringBuilder sb = new StringBuilder("www.fanzhineng.cn");
			sb.Append("121");
			sb.Insert(2,"2");

            Console.WriteLine(sb);
			// 移除
			sb.Remove(4, 2);
            Console.WriteLine(sb);

			sb.Replace("i", "love");
            Console.WriteLine(sb);

			Console.ReadKey();
        }
	}
}
